﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.OMM.Configuration.Router
{
    /// <summary>
    /// Classe com as regras de distribuição de mensagens
    /// </summary>
    public class DistributionRule
    {

        private Int32 _startPort;
        private Int32 _endPort;
        private Int32? _clientId;
        private HFTMessageManager.HFTMessageManagerConfiguration _hftProcess = new HFTMessageManager.HFTMessageManagerConfiguration();

        /// <summary>
        /// Start port
        /// </summary>
        public Int32 StartPort
        {
            get { return _startPort; }
            set { _startPort = value; }
        }

        /// <summary>
        /// End port
        /// </summary>
        public Int32 EndPort
        {
            get { return _endPort; }
            set { _endPort = value; }
        }

        /// <summary>
        /// Client Id
        /// </summary>
        public Int32? ClientId
        {
            get { return _clientId; }
            set { _clientId = value; }
        }

        /// <summary>
        /// HFT Process
        /// </summary>
        public HFTMessageManager.HFTMessageManagerConfiguration HFTProcess
        {
            get { return _hftProcess; }
            set { _hftProcess = value; }
        }

    }
}
